import * as echarts from 'echarts/core'

import { BarChart, FunnelChart, ScatterChart, PieChart } from 'echarts/charts'

import {
  TooltipComponent,
  LegendComponent,
  VisualMapComponent
} from 'echarts/components'

import { CanvasRenderer } from 'echarts/renderers'

echarts.use([
  BarChart,
  FunnelChart,
  ScatterChart,
  PieChart,
  TooltipComponent,
  LegendComponent,
  CanvasRenderer,
  VisualMapComponent
])

export default echarts
